package model;

import java.util.ArrayList;

public class QueryEdge {
	public String label;
	public String id;

	public QueryNode sourceNode;
	public QueryNode targetNode;
	public ArrayList<QueryAttribute> queryAttributes = new ArrayList<QueryAttribute>();

	public int getSourceId() {
		String sId = sourceNode.id;
		String[] splits = sId.split("_");
		return Integer.parseInt(splits[3]);
	}

	public int getTargetId() {
		String sId = targetNode.id;
		String[] splits = sId.split("_");
		return Integer.parseInt(splits[3]);
	}

}
